<%@ page language="java" pageEncoding="UTF-8"%>
<div class="panel panel-default" ng-controller="UserMessageCardController">
	<div class="panel-heading" ng-show="option.title!=null && option.title!=''">
		{{option.title}}
	</div>
	<div class="panel-body">
		<div class="media msg">
			<a class="pull-left" ng-href="#/user/{{user.user.id}}/home">
				<img class="media-object panel panel-default" style="width: 80px; height: 80px;" ng-src="{{user.user.headphoto | path}}">
			</a>
			<div class="media-body">
				<h5 class="media-heading">
					<a ng-href="#/user/{{user.user.id}}/home">{{user.user.username}}</a>
				</h5>
				
				<div style="color: #bbb; font-size: 12px;">
					{{user.user.signature}}
				</div>
			</div>
		</div>

		<div class="pull-left">
			<div class="btn-group">
				<button type="button" class="btn btn-success btn-sm" ng-click="follow.create(user.user)" ng-show="!user.follow">关注</button>
				<button type="button" class="btn btn-info btn-sm" ng-click="follow.clear(user.user)" ng-show="user.follow">取消</button>
				<button type="button" class="btn btn-info btn-sm" ng-click="mail.create(user.user)">私信</button>
			</div>
		</div>
		
		<div class="pull-right" style="color: #bbb;">
			<div style="position: relative;top: 5px;">
				<span>粉丝:<span>{{user.user.fans_count}}</span></span>
				&nbsp;/&nbsp;
				<span>关注:<span>{{user.user.follow_count}}</span></span>
			</div>
		</div>
	</div>
</div>